package vn.igolf.distance;

import javax.swing.JComponent;
import javax.swing.JFrame;

public class DistanceMainClass  {
    public static void main(String[] args) {
        //Schedule a job for the event-dispatching thread:
        //creating and showing this application's GUI.
    	
        javax.swing.SwingUtilities.invokeLater(new Runnable() {
            public void run() {
                JFrame frame = new JFrame("Golf Distance");
                frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);

                JComponent loginPanel = new LoginPanel();
                loginPanel.setOpaque(true); //content panes must be opaque
                frame.setContentPane(loginPanel);
                
                //Display the window.
                frame.pack();
                frame.setVisible(true);
            }
        });
    }
    
}

